﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="MantenimientoClientes.aspx.cs" Inherits="CapaPresentacion.MantenimientoClientes" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">

        .style4
        {
            width: 87px;
        }
        .style7
        {
        }
        .style10
        {
            width: 377px;
        }
        .style11
        {
            width: 71px;
        }
        .style12
        {
            width: 87px;
            height: 7px;
        }
        .style13
        {
            height: 7px;
        }
        .style14
        {
            width: 71px;
            height: 7px;
        }
        .style15
        {
            width: 377px;
            height: 7px;
        }
        .style16
        {
            width: 87px;
            height: 17px;
        }
        .style17
        {
            height: 17px;
        }
        .style18
        {
            width: 71px;
            height: 17px;
        }
        .style19
        {
            width: 377px;
            height: 17px;
        }
        .style20
        {
            width: 87px;
            height: 32px;
        }
        .style21
        {
            height: 32px;
        }
        .style22
        {
            width: 71px;
            height: 32px;
        }
        .style23
        {
            width: 377px;
            height: 32px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        Mantenimiento de Clientes<asp:Panel ID="Panel1" runat="server" 
        Height="209px" Width="587px">
    <table style="width:89%; height: 179px;" border="0.2">
                    <tr>
                        <td class="style16">
                            IdCliente:</td>
                        <td class="style17">
                            <asp:TextBox ID="txtIdCliente" runat="server" Width="184px" Height="16px"></asp:TextBox>
                        </td>
                        <td class="style18">
                            <asp:Label ID="Label2" runat="server" Text="Nombre:"></asp:Label>
                        </td>
                        <td class="style19">
                            <asp:TextBox ID="txtNombre" runat="server" Width="199px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style4">
                            Apellido:</td>
                        <td class="style7">
                            <asp:TextBox ID="txtApellido" runat="server" Width="184px"></asp:TextBox>
                        </td>
                        <td class="style11">
                            Diereccion:</td>
                        <td class="style10">
                            <asp:TextBox ID="txtDireccion" runat="server" Width="203px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style4">
                            Telefono:</td>
                        <td class="style7">
                            <asp:TextBox ID="txtTelefono" runat="server" style="margin-right: 6px" 
                                Width="135px"></asp:TextBox>
                        </td>
                        <td class="style11">
                            Dni:</td>
                        <td class="style10">
                            <asp:TextBox ID="txtDNI" runat="server" Width="142px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style4">
                            Email:</td>
                        <td class="style7" colspan="2">
                            <asp:TextBox ID="txtEmail" runat="server" Width="273px"></asp:TextBox>
                        </td>
                        <td class="style10">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style4">
                            Usuario:</td>
                        <td class="style7">
                            <asp:TextBox ID="txtUsuario" runat="server" Width="171px"></asp:TextBox>
                        </td>
                        <td class="style11">
                            Clave:</td>
                        <td class="style10">
                            <asp:TextBox ID="txtClave" runat="server" Width="141px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style12">
                            </td>
                        <td class="style13">
                        </td>
                        <td class="style14">
                            </td>
                        <td class="style15">
                            </td>
                    </tr>
                    <tr>
                        <td class="style20">
                            <asp:ImageButton ID="btnNuevo" runat="server" BorderColor="#0066FF" 
                                BorderStyle="Outset" BorderWidth="2px" Height="38px" 
                                ImageUrl="~/Botones/newreg.png" onclick="btnNuevo_Click" ToolTip="Nuevo" 
                                Width="88px" />
                        </td>
                        <td class="style21">
                            <asp:ImageButton ID="btnGrabar" runat="server" BorderColor="#0066FF" 
                                BorderStyle="Outset" Height="41px" ImageUrl="~/Botones/guardar.png" 
                                onclick="btnGrabar_Click" ToolTip="Grabar" Width="87px" />
                            <asp:ImageButton ID="btnBuscar" runat="server" BorderColor="#0066FF" 
                                BorderStyle="Outset" Height="40px" ImageUrl="~/Botones/buscar.jpg" 
                                onclick="btnBuscar_Click" ToolTip="Buscar" Width="88px" />
                        </td>
                        <td class="style22">
                            <asp:ImageButton ID="btneliminar" runat="server" BorderColor="#0066FF" 
                                BorderStyle="Outset" Height="38px" ImageUrl="~/Botones/elicliente.png" 
                                onclick="btneliminar_Click" ToolTip="Eliminar" Width="72px" />
                        </td>
                        <td class="style23">
                            &nbsp;</td>
                    </tr>
                </table>

              <center>
                     LISTAR CLIENTES<br />
        <asp:GridView ID="gvClientes" runat="server" AutoGenerateColumns="False" 
            Height="187px" Width="804px" CellPadding="4" ForeColor="#333333" 
                GridLines="None" style="margin-top: 0px">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="IdCliente" HeaderText="IdCliente" />
                <asp:BoundField DataField="Nombres" HeaderText="Nombre" />
                <asp:BoundField DataField="Apellidos" HeaderText="Apellido" />
                <asp:BoundField DataField="Direccion" HeaderText="Direccion" />
                <asp:BoundField DataField="Telefono" HeaderText="Telefono" />
                <asp:BoundField DataField="DNI" HeaderText="DNI" />
                <asp:BoundField DataField="Email" HeaderText="E-mail" />
                <asp:BoundField DataField="Usuario" HeaderText="Usuario" />
                <asp:BoundField DataField="Clave" HeaderText="Clave" />
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
            </asp:Panel>
      <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <p>
    </p>
</asp:Content>
